<template>
    <div class="test"></div>
</template>
<script>
import { findComponentUpWard, findComponentsUpWard } from '../assets/js/findComponent.js'
export default {
  name: 'testFindCom',
  data () {
    return {
      keyFind: false
    }
  },
  mounted () {
    if (this.keyFind) {
      let djForm = findComponentUpWard(this, 'dj-form')
      let djFormItemList = findComponentsUpWard(this, 'dj-form-item')
      if (djForm) djForm.sayHelloWorld()
      if (djFormItemList.length) {
        console.log(djFormItemList)
      }
    }
  }
}
</script>
